Optimal. Leaf size=61 \[ \frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )-\frac{1}{3} b c^{3/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )-\frac{1}{3} b c^{3/2} \tanh ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{2 b c x}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0331548, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {6097, 193, 321, 212, 206, 203} \[ \frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )-\frac{1}{3} b c^{3/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )-\frac{1}{3} b c^{3/2} \tanh ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{2 b c x}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6097
Rule 193
Rule 321
Rule 212
Rule 206
Rule 203
Rubi steps
\begin{align*} \int x^2 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right ) \, dx &=\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{3} (2 b c) \int \frac{1}{1-\frac{c^2}{x^4}} \, dx\\ &=\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{3} (2 b c) \int \frac{x^4}{-c^2+x^4} \, dx\\ &=\frac{2 b c x}{3}+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{3} \left (2 b c^3\right ) \int \frac{1}{-c^2+x^4} \, dx\\ &=\frac{2 b c x}{3}+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )-\frac{1}{3} \left (b c^2\right ) \int \frac{1}{c-x^2} \, dx-\frac{1}{3} \left (b c^2\right ) \int \frac{1}{c+x^2} \, dx\\ &=\frac{2 b c x}{3}-\frac{1}{3} b c^{3/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )-\frac{1}{3} b c^{3/2} \tanh ^{-1}\left (\frac{x}{\sqrt{c}}\right )\\ \end{align*}
Mathematica [A] time = 0.0183367, size = 86, normalized size = 1.41 \[ \frac{a x^3}{3}+\frac{1}{6} b c^{3/2} \log \left (\sqrt{c}-x\right )-\frac{1}{6} b c^{3/2} \log \left (\sqrt{c}+x\right )-\frac{1}{3} b c^{3/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{1}{3} b x^3 \tanh ^{-1}\left (\frac{c}{x^2}\right )+\frac{2 b c x}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 51, normalized size = 0.8 \begin{align*}{\frac{{x}^{3}a}{3}}+{\frac{b{x}^{3}}{3}{\it Artanh} \left ({\frac{c}{{x}^{2}}} \right ) }-{\frac{b}{3}{c}^{{\frac{3}{2}}}\arctan \left ({x{\frac{1}{\sqrt{c}}}} \right ) }+{\frac{2\,xbc}{3}}-{\frac{b}{3}{c}^{{\frac{3}{2}}}{\it Artanh} \left ({\frac{1}{x}\sqrt{c}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.77425, size = 421, normalized size = 6.9 \begin{align*} \left [\frac{1}{6} \, b x^{3} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) + \frac{1}{3} \, a x^{3} - \frac{1}{3} \, b c^{\frac{3}{2}} \arctan \left (\frac{x}{\sqrt{c}}\right ) + \frac{1}{6} \, b c^{\frac{3}{2}} \log \left (\frac{x^{2} - 2 \, \sqrt{c} x + c}{x^{2} - c}\right ) + \frac{2}{3} \, b c x, \frac{1}{6} \, b x^{3} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) + \frac{1}{3} \, a x^{3} + \frac{1}{3} \, b \sqrt{-c} c \arctan \left (\frac{\sqrt{-c} x}{c}\right ) + \frac{1}{6} \, b \sqrt{-c} c \log \left (\frac{x^{2} - 2 \, \sqrt{-c} x - c}{x^{2} + c}\right ) + \frac{2}{3} \, b c x\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 22.2281, size = 624, normalized size = 10.23 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.25818, size = 93, normalized size = 1.52 \begin{align*} \frac{1}{3} \, b c^{3}{\left (\frac{\arctan \left (\frac{x}{\sqrt{-c}}\right )}{\sqrt{-c} c} - \frac{\arctan \left (\frac{x}{\sqrt{c}}\right )}{c^{\frac{3}{2}}}\right )} + \frac{1}{6} \, b x^{3} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) + \frac{1}{3} \, a x^{3} + \frac{2}{3} \, b c x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]